package com.jdym.back.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 历史贷款表
 * </p>
 *
 * @author ${author}
 * @since 2021-09-20
 */

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="History对象", description="历史贷款表")
public class History implements Serializable {


    private static final long serialVersionUID = 1L;

//    历史贷款（查询企业信息--企业名，企业法人，联系电话）（查询逾期贷款-逾期的金额，逾期还款金额，逾期日期）

    List<Firm> firmList;
    List<Overdue> overdueList;
    List<CoBank> coBankList;

    public List<Firm> getFirmList() {
        return firmList;
    }

    public void setFirmList(List<Firm> firmList) {
        this.firmList = firmList;
    }

    public List<Overdue> getOverdueList() {
        return overdueList;
    }

    public void setOverdueList(List<Overdue> overdueList) {
        this.overdueList = overdueList;
    }


    @ApiModelProperty(value = "历史贷款ID")
    @TableId(value = "history_id", type = IdType.AUTO)
    private Integer historyId;

    @ApiModelProperty(value = "历史贷款金额")
    private String historyNum;

    @ApiModelProperty(value = "历史贷款日期")
    private Date historyDate;

    @ApiModelProperty(value = "历史贷款还款日期")
    private Date historyReturn;

    @ApiModelProperty(value = "历史贷款银行名")
    private String historyBankName;

    private BigDecimal historyLoan;

    @ApiModelProperty(value = "历史贷款银行利率")
    private String historyBankRate;

    @ApiModelProperty(value = "历史贷款逾期状态(1-逾期，0-未逾期)")
    private Integer  historyOutType;

    @ApiModelProperty(value = "历史贷款期限")
    private String historyQiXian;

    @ApiModelProperty(value = "企业信用度")
    private String Believe;

    @ApiModelProperty(value = "企业id")
    private Integer firmId;

    @ApiModelProperty(value = "逾期id")
    private Integer overdueId;


    @ApiModelProperty(value = "银行id")
    private Integer cobank_id;


}
